import QtQuick 2.0
import com.xdqd.classes 1.0

HomeForm {
    Tool_qr{
        id:tool_qr
    }

    Connections{
        target: tool_qr

        function onQrDecodersuccess(res){
            console.log("onQrDecodersuccess"+res)
        }

        function onQrDecoderfailed(res){
            console.log("onQrDecoderfailed"+res)
            cameracapture.capture()
        }
    }

    Connections{
        target: tool_cameracapture

        function onGetImage(imagepatn){
            tool_qr.setCapturedImageFileName(imagepatn)
        }
    }
}

/*##^##
Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
